package session.stateless;

import entity.Discount;
import java.util.List;
import javax.ejb.Local;

@Local
public interface DiscountBeanLocal {
    public long createDiscount(String productType, int lowerLimit, int higherLimit, double discountRate);
    public void modifyDiscount(long discountId, int lowerLimit, int higherLimit, double discountRate);
    public void deleteDiscount(long discountId);
    
    public double calculateDiscountRate (String productType, Long realQuantity);
    public List<Discount> getDiscounts();
    
    //Extra methods
    public boolean checkConflict(String productType, int lowerLimit, int higherLimit);
}
